Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gltfio: add nominal support for flat shading. #2115

Merged
merged 1 commit into from
Feb 10, 2020
Merged

Conversation

prideout
Copy link
Contributor

fox

This "fixes" the new animated Fox model in the glTF conformance suite. As per the glTF spec, we now generate per-face normals for the case where normals are not specified in the model.

Note that true flat shading (i.e. flat interpolation) is not a requirement in the glTF spec, since some Khronos members advocate for WebGL 1.0 compatibility.

Fixes #2088.

This "fixes" the new animated Fox model in the glTF conformance suite.
As per the glTF spec, we now generate per-face normals for the case
where normals are not specified in the model.

Note that true flat shading (i.e. flat interpolation) is not a
requirement in the glTF spec, since some Khronos members advocate for
WebGL 1.0 compatibility.

Fixes #2088.
@prideout prideout merged commit 891e85b into master Feb 10, 2020
@prideout prideout deleted the pr/gltfio_flatshading branch February 10, 2020 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to apply flat shading to glTF model?
3 participants